// 活动概况
import { base } from '@/config'
import http from '@/utils/request'

const activityApi = {
  // 近30天兑换统计
  getActivityCount: params => {
    return http.get(`${base.coupon}/gift/count/countBy30Day`, { params })
  },
  // 统计礼品券兑换明细
  getCountSale: () => {
    return http.get(`${base.coupon}/gift/count/countSale`)
  },
  // 查询礼品兑换列表
  getExchangeRecordList: params => {
    return http.get(`${base.coupon}/gift/detail/convertList`, params)
  },
  // 查询活动概况列表
  getDetailList: params => {
    return http.get(`${base.coupon}/gift/detail/detailList`, { params })
  }
}

export default activityApi
